<?php
/**
 * Mechanism
 * 
 * LICENSE
 * 
 * This file is private intellectual property of the author. 
 * All rights reserved. Copying and illegal using is punishable by law.
 * 
 * @copyright Copyright (c) 2011 BreatheInMyVoid ( BreatheInMyVoid@gmail.com )
 */
namespace Mechanism\View {
	/**
	 *
	 */
	class Php extends View {
		protected $properties = array( );

		public function __set( $name, $value ) {
			$this->properties[ $name ] = $value;
		}
		public function __get( $name ) {
			return $this->properties[ $name ];
		}


		public function render( ) {
			/* Alias for template */
			$view = $this;

			$this->name = 'Vasua';
			$view->age = 21;

			ob_start( );
			include '../application/modules/main/views/index/index.phtml';
			$content = ob_get_clean( );

			return $content;
		}
	}
}
